]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Scale calendar heading with font size
authorSebastian Keller <skeller@gnome.org>
Wed, 3 May 2023 10:04:00 +0000 (12:04 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 17 May 2023 16:33:53 +0000 (16:33 +0000)
Using a fixed pixel size can result in the cell being too small for the
contained label. Instead use em to scale with the font size like is done
for the other cells. The chosen size corresponds to 16px with the
default font settings.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6651
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2759>

data/theme/gnome-shell-sass/widgets/_calendar.scss

index 39322162716b4dfbc329665563183120c859d5f7..2a6aec8a9d75eb1eba15ecedb6d1f2d4aedb225e 100644 (file)
@@ -94,7 +94,7 @@
     &.calendar-day-heading {
       color: $insensitive_fg_color;
       padding-top: $base_padding;
-      height: 16px !important; // force heading to be smaller height
+      height: 1.1em !important; // force heading to be smaller height
       font-weight: 600;
       @extend %smaller;
     }